package com.ship.dispatch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.common.datasource.annotation.Slave;
import com.ship.dispatch.bean.SpBoatsActualCompatible;
import com.ship.dispatch.bean.boats.QueryBoatsActualRq;
import com.ship.dispatch.bean.boats.info.QueryBoatsActualCompatibleInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpBoatsActualCompatibleMapper extends BaseMapper<SpBoatsActualCompatible> {

    List<QueryBoatsActualCompatibleInfo> queryBoatsActualList(@Param("query") QueryBoatsActualRq query);

    @Slave
    String queryImoByShipName(@Param("shipName") String shipName);

    List<String> queryBoatsActualImoList(@Param("query") QueryBoatsActualRq query);

    List<String> queryBoatsPortSisterAll(@Param("imoList") List<String> imoList);

    List<QueryBoatsActualCompatibleInfo> queryBoatsActualListByImo(@Param("imoList") List<String> imoList);
}
